<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我</title>
    <link rel="stylesheet" th:href="@{/css/style.css}" href="css/style.css" />
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-image: url('/images/2.png'); /* 设置背景图片 */
            background-size: cover; /* 覆盖整个页面 */
            background-position: center; /* 居中显示 */
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        h1, h2 {
            text-align: center;
            color: #333;
        }

        .container {
            max-width: 400px;
            width: 100%;
            background: rgba(255, 255, 255, 0.3); /* 半透明背景以增强可读性 */
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        label {
            font-weight: bold;
            margin-top: 20px;
        }

        input[type="text"], input[type="email"], input[type="file"] {
            width: calc(100% - 20px);
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 16px;
        }

        button {
            background-color: #5cb85c;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 15px;
            width: 100%;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #4cae4c;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <div class="navbar">
        <nav class="navbar">
            <ul class="nav-list">
                <li class="nav-item"><a th:href="@{/prt/index}">首页</a></li>
                <li class="nav-item"><a th:href="@{/prt/booking_guide}">预订指南</a></li>
                <li class="nav-item"><a th:href="@{/prt/online_booking}">在线预订</a></li>
                <li class="nav-item active"><a th:href="@{/prt/profile}">我</a></li>
            </ul>
        </nav>
    </div>
    <div class="container">
        <h2>我的账户</h2>
        <form action="/upload" method="post" enctype="multipart/form-data">
            <label>姓名:</label>
            <input type="text" name="name" />

            <label>电话号码:</label>
            <input type="text" name="phone" />

            <label>邮箱:</label>
            <input type="email" name="email" />

            <label>上传头像:</label>
            <input type="file" name="avatar" />

            <button type="submit">上传</button>
        </form>
    </div>
</div>
</body>
</html>